package com.rising.face.ali.bishi.lrucache;

import cn.hutool.json.JSONUtil;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author LiChenYang
 * @description
 * @date 2022-12-17 15:10
 */
public class LinkedHashMapTest {
    public static void main(String[] args) {
        LinkedHashMap<String, String> map = new LinkedHashMap<>(16,0.75f,true);
        map.put("3A", "A");
        map.put("2b", "b");
        map.put("1c", "c");
        map.put("5d", "d");
        System.out.println(JSONUtil.toJsonStr(map));
        System.out.println("此时获取2b看下效果，" + map.get("2b"));
        System.out.println(JSONUtil.toJsonStr(map));
    }
}
